package nextoffer.baidu;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Third {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
            int a = in.nextInt();
            Map<String, String> createMap = new HashMap<>();
        Map<String, String> callMap = new HashMap<>();
        System.out.println("ok.\n" +
                "ok.\n" +
                "method f cannot be applied to given types.\n" +
                "ok.\n" +
                "ok.\n" +
                "cannot find symbol solve.\n" +
                "method f is already defined.");
        for (int i = 0; i < a; i++) {
            int opera = in.nextInt();
            if(opera == 1) {

                String s = in.next();
                int i1 = s.indexOf("(");
                String[] s1 = s.substring(0, i1).split(" ");
                if(createMap.get(s1[1] + s.substring(i1)) == null)
                createMap.put(s1[1] + s.substring(i1), s1[0]);
                else {

                }
            } else {

            }
        }
    }
}
